﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace prjMateriais
{
    public partial class frmSair : Form
    {
        public frmMenuMateriais f;
        public frmSair()
        {
            InitializeComponent();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            if (rdbtnSair.Checked)
            {
                f.opcao_sair = 0;
            }
            else if (rdbtnLogoff.Checked)
            {
                f.opcao_sair = 1;
            }
            else
            {
                f.opcao_sair = 2;
            }
            this.Dispose();
        }

        private void frmSair_FormClosed(object sender, FormClosedEventArgs e)
        {
            btnOk_Click(sender, e);
        }
    }
}
